package handle

import (
	"chat/Intends/model"
	"chat/golden"
	"chat/inits"
	"fmt"
)

type ChatList struct {
}

func ChatListsEt() *ChatList {
	return &ChatList{}
}

func ChatLists() {
	var user []model.User
	golden.DB.Find(&user)
	for _, i := range user {
		list := model.User{
			Username: i.Username,
			Password: i.Password,
		}
		user = append(user, list)
	}
	golden.RDB.Get(inits.Ctx, "user")

	fmt.Println(user)
}
